# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=tweetshell
pkgver=21.47a415c
pkgrel=1
pkgdesc='Multi-thread Twitter BruteForcer in Shell Script.'
groups=('blackarch' 'blackarch-cracker')
arch=('any')
url='https://github.com/thelinuxchoice/tweetshell'
license=('GPL3')
depends=('bash' 'curl' 'tor')
makedepends=('git')
source=("git+https://github.com/thelinuxchoice/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 passwords.lst "$pkgdir/usr/share/$pkgname/passwords.lst"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

